package com.ym.medical.domain.entity;

import com.ym.common.constant.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.util.Date;

/**
 * 健康币变动对象 user_health_record
 *
 * @author ym
 * @date 2020-08-24
 */
@ApiModel("健康币变动-实体")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "user_health_record")
public class UserHealthRecordEntity extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 用户ID
	 */
	@ApiModelProperty("用户ID")
	private Long userId;

	/**
	 * 获取渠道：01签到02充值
	 */
	@ApiModelProperty("获取渠道：01签到02充值")
	private String source;

	/**
	 * 增减 01增加02减少
	 */
	@ApiModelProperty("增减 01增加02减少")
	private String incDec;

	/**
	 * 消费类型 01兑换优惠劵
	 */
	@ApiModelProperty("消费类型 01兑换优惠劵")
	private String changeType;

	/**
	 * 健康币数量
	 */
	@ApiModelProperty("健康币数量")
	private Integer num;

	/**
	 * 备注
	 */
	@ApiModelProperty("备注")
	private String remark;

	/**
	 * 创建时间
	 */
	@ApiModelProperty("创建时间")
	private Date createTime;

	/**
	 * 创建人
	 */
	@ApiModelProperty("创建人")
	private Long createSb;

}
